$app-main-color: #C5261D;
$theme-color:  #C5261D;
$colorList: "c5261d","9ca4ab", "000", "666", "333", "aaa", "fff", "ccc", "999", "eee",
  "f5f5f5", "ff0000", "241d18", "677585", "f7f8fa", "00ba6d", "ff8d1a", "0c1028";
@each $i in $colorList {
  $c: str-insert($i, "#", 0);
  .c-#{$i} {
    color: unquote($c);
  }
  .bgc-#{$i} {
    background-color: unquote($c);
  }
  .bc-#{$i} {
    border: 1px solid unquote($c);
  }
  .bbc-#{$i} {
    border-bottom: 1px solid unquote($c);
  }
  .brc-#{$i} {
    border-right: 1px solid unquote($c);
  }
}
page {
  height: 100%;
}

.page {
  min-height: 100vh;
}

.container {
  box-sizing: border-box; /* padding border 等不增加到宽高上 */
  // box-sizing: content-box;  /* padding border 等增加到宽高上 */
}

view,
scroll-view,
swiper,
button,
input,
textarea,
label,
navigator,
image {
  box-sizing: content-box; /* padding border 等增加到宽高上 */
}

.flex {
  display: flex;
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

// 横轴
.flex-row-around {
  display: flex;
  justify-content: space-around;
}

.flex-row-between {
  display: flex;
  justify-content: space-between;
}

.flex-row-center {
  display: flex;
  justify-content: center;
}

// 纵轴
.flex-column-center {
  display: flex;
  align-items: center;
}

// 横轴 纵轴
.flex-around-center {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.flex-between-center {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex-center-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

// 宽高
@for $i from 1 through 400 {
  .w-#{$i} {
    width: $i + rpx;
  }
  .h-#{$i} {
    height: $i + rpx;
  }
  .lh-#{$i} {
    line-height: $i + rpx;
  }
}

// 字体大小
@for $i from 10 through 60 {
  .fs-#{$i} {
    font-size: $i + rpx;
  }
}

.fw-500 {
  font-weight: 500;
}
.fw-550 {
  font-weight: 550;
}
.fw-600 {
  font-weight: 600;
}
.fw-700 {
  font-weight: 700;
}

// 圆角
@for $i from 1 through 50 {
  .br-#{$i} {
    border-radius: $i + rpx;
  }
}

// 内边距
@for $i from 1 through 200 {
  .pad-#{$i} {
    padding: $i + rpx;
  }
  .pt-#{$i} {
    padding-top: $i + rpx;
  }
  .pr-#{$i} {
    padding-right: $i + rpx;
  }
  .pb-#{$i} {
    padding-bottom: $i + rpx;
  }
  .pl-#{$i} {
    padding-left: $i + rpx;
  }
  .ptb-#{$i} {
    padding-top: $i + rpx;
    padding-bottom: $i + rpx;
  }
  .plr-#{$i} {
    padding-left: $i + rpx;
    padding-right: $i + rpx;
  }
}

// 外边距
@for $i from 1 through 100 {
  .mar-#{$i} {
    margin: $i + rpx;
  }
  .mt-#{$i} {
    margin-top: $i + rpx;
  }
  .mr-#{$i} {
    margin-right: $i + rpx;
  }
  .mb-#{$i} {
    margin-bottom: $i + rpx;
  }
  .ml-#{$i} {
    margin-left: $i + rpx;
  }
  .mtb-#{$i} {
    margin-top: $i + rpx;
    margin-bottom: $i + rpx;
  }
  .mlr-#{$i} {
    margin-left: $i + rpx;
    margin-right: $i + rpx;
  }
}

.center {
  text-align: center;
}

// 订单的主要按钮
.main-btn {
  width: 160rpx;
  height: 72rpx;
  border-radius: 60rpx;
  text-align: center;
  line-height: 72rpx;
  color: #fff;
  background-color: $app-main-color;
}

// 订单的次要按钮
.minor-btn {
  width: 160rpx;
  height: 72rpx;
  border: 2rpx solid #999999;
  border-radius: 60rpx;
  text-align: center;
  line-height: 72rpx;
}

.bottom-box {
  box-sizing: border-box;
}
// 沾满全屏的按钮
.fullscreen-btn {
  width: 100%;
  height: 94rpx;
  text-align: center;
  line-height: 94rpx;
  background-color: $app-main-color;
  border-radius: 60rpx;
  color: #fff;
}

button::after {
  border: none;
}

button {
  display: block;
  line-height: normal;
  background-color: #fff;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  font-size: 32rpx;
}

//划线
.line-through {
  text-decoration: line-through;
}

.u-text {
  flex: 0 !important;
  font-weight: 550 !important;
}

.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-active {
  &:active {
    background-color: #f7f8fa;
  }
}

.u-textarea {
  background-color: transparent !important;
}

//换行，字母也换行
.break-all {
  word-break: break-all;
  word-wrap: break-word;
}
